Skip to main content

Get Tool

Used to retrieve a specific tool by its ID. This allows you to fetch detailed information about a particular tool including its configuration, actions, authentication settings, and metadata.

API Endpoint

PropertyValue
Request MethodGET
Request URLhttps://api.seliseblocks.com/tools/{tool_id}

Request

Request Example

curl -X GET 'https://api.seliseblocks.com/tools/{tool_id}?project_key=YOUR_PROJECT_KEY' \
-H 'accept: application/json'

Path Parameters

FieldTypeRequiredDescription
tool_idstringYesThe unique identifier of the tool.

Query Parameters

FieldTypeRequiredDescription
project_keystringNoThe project key for your project.

Request Headers

FieldTypeRequiredDescription
acceptstringYesAccepted response format. Use application/json
note

Tool Retrieval Details

  • Returns complete tool configuration including all actions and settings
  • Includes both API and MCP server configurations if applicable
  • Provides authentication configuration details (tokens are masked for security)
  • Returns version history and usage statistics
  • Access is controlled by project permissions
tip

Use cases for retrieving tool details:

  • Viewing complete tool configuration for documentation
  • Auditing tool settings and authentication
  • Checking action definitions and parameters
  • Reviewing version history and changes
  • Monitoring tool usage statistics
  • Debugging integration issues

The response includes:

  • Basic metadata (name, description, type, status)
  • Complete API or MCP configuration
  • All available actions with parameters
  • Authentication settings (with sensitive data masked)
  • Rate limiting and retry configurations
  • Webhook settings
  • Version information and change history
  • Usage statistics

Response

Success Response (200 OK)

Returns the complete tool object with all configuration details.

{
"_id": "tool_123",
"CreatedDate": "2025-12-01T10:30:00Z",
"LastUpdatedDate": "2026-01-10T14:20:00Z",
"CreatedBy": "user_456",
"Language": "en",
"LastUpdatedBy": "user_789",
"OrganizationIds": ["org_001"],
"Tags": ["customer", "api", "production"],
"Name": "Customer API",
"Description": "API for managing customer data and interactions",
"Type": "api",
"Status": "active",
"APIConfig": {
"BaseURL": "https://api.example.com/v1",
"Actions": {
"get_customer": {
"ActionId": "action_001",
"Name": "Get Customer",
"Description": "Retrieve customer information by ID",
"Endpoint": "/customers/{id}",
"Method": "GET",
"InputParameters": {
"id": {
"Name": "id",
"Type": "string",
"Description": "Customer ID",
"Required": true,
"Location": "path"
}
},
"TimeoutSeconds": 30,
"Enabled": true
}
},
"AuthConfig": {
"AuthType": "bearer",
"APIToken": "***masked***",
"AuthKeyLocation": "header",
"AuthKeyName": "Authorization",
"AuthKeyPrefix": "Bearer"
},
"RateLimitConfig": {
"Enabled": true,
"RequestsPerMinute": 100,
"RequestsPerHour": 6000,
"BurstSize": 10
}
},
"CurrentVersion": "1.2.0",
"TotalUses": 1547,
"LastUsed": "2026-01-12T06:15:30Z"
}

Main Response Fields

FieldTypeDescription
_idstringUnique identifier of the tool.
CreatedDatestringISO 8601 timestamp when the tool was created.
LastUpdatedDatestringISO 8601 timestamp when the tool was last updated.
CreatedBystringUser ID who created the tool.
LanguagestringLanguage code for the tool.
LastUpdatedBystringUser ID who last updated the tool.
OrganizationIdsarrayArray of organization IDs this tool belongs to.
TagsarrayArray of tags for categorization.
NamestringDisplay name of the tool.
DescriptionstringDetailed description of the tool's purpose.
TypestringTool type: "api", "mcp_server", "webhook", "graphql".
StatusstringTool status: "active", "inactive", "deprecated", "maintenance".
APIConfigobjectAPI tool configuration (present for API tools).
MCPConfigobjectMCP server configuration (present for MCP tools).
TutorialstringTutorial or guide for using the tool.
DocumentationURLstringURL to external documentation.
CurrentVersionstringCurrent active version of the tool.
VersionsobjectVersion history with snapshots.
CategorystringTool category for organization.
TotalUsesintegerTotal number of times the tool has been used.
LastUsedstringISO 8601 timestamp of last usage.

API Configuration Fields

FieldTypeDescription
BaseURLstringBase URL for the API.
ActionsobjectDictionary of available actions.
AuthConfigobjectAuthentication configuration.
TimeoutintegerDefault timeout in seconds.
HeadersobjectDefault headers for all requests.
RateLimitConfigobjectRate limiting configuration.
RetryConfigobjectRetry behavior configuration.
WebhookConfigobjectWebhook notification configuration.
APISchemastringAPI schema definition.
OpenAPISpecobjectOpenAPI specification.
LastModifiedstringISO 8601 timestamp of last modification.

Action Configuration Fields

FieldTypeDescription
ActionIdstringUnique identifier for the action.
NamestringDisplay name of the action.
DescriptionstringDescription of what the action does.
EndpointstringAPI endpoint path.
MethodstringHTTP method: "GET", "POST", "PUT", "DELETE", "PATCH".
InputParametersobjectDictionary of input parameters.
OutputParametersobjectDictionary of expected output parameters.
OutputParametersExtractionobjectRules for extracting output from response.
InputSchemastringJSON schema for input validation.
OutputSchemastringJSON schema for output validation.
RetryConfigobjectAction-specific retry configuration.
TimeoutSecondsintegerAction-specific timeout in seconds (default: 30).
EnabledbooleanWhether the action is enabled.
TestStatusbooleanWhether the action has been tested.
CreatedAtstringISO 8601 timestamp of action creation.
LastModifiedstringISO 8601 timestamp of last modification.
LastTestedstringISO 8601 timestamp of last test.
TagsarrayTags for the action.
RequiresApprovalbooleanWhether action requires user approval.
ApprovalPromptstringCustom prompt for approval request.
ApprovalTimeoutintegerTimeout for approval in seconds (default: 300).
AutoRejectOnTimeoutbooleanAuto-reject if approval times out.

MCP Configuration Fields

FieldTypeDescription
ServerURLstringURL of the MCP server.
TransportstringTransport protocol (e.g., "streamable_http").
HeadersobjectCustom headers for MCP requests.
QueryParamsobjectQuery parameters for MCP requests.
TrustMCPServerbooleanWhether to trust server SSL certificates.
ActionsobjectDictionary of MCP actions (similar to API actions).
AuthConfigobjectMCP-specific authentication configuration.
RateLimitConfigobjectRate limiting configuration for MCP.
LastModifiedstringISO 8601 timestamp of last modification.
CreatedAtstringISO 8601 timestamp of creation.
RequiresApprovalbooleanWhether MCP actions require approval.
ApprovalPromptstringCustom approval prompt.
ApprovalTimeoutintegerApproval timeout in seconds.

Authentication Configuration Fields

FieldTypeDescription
AuthTypestringType: "none", "bearer", "basic", "oauth2", "api_key".
APITokenstringAPI token (masked in responses).
AuthKeyLocationstringLocation: "header", "query".
AuthKeyNamestringName of the auth key/header.
AuthKeyPrefixstringPrefix for auth value (e.g., "Bearer").
UsernamestringUsername for basic auth.
PasswordstringPassword for basic auth (masked).
OAuth2ConfigobjectOAuth 2.0 configuration.
CustomHeadersobjectCustom authentication headers.
CustomQueryParamsobjectCustom authentication query parameters.

Error Response (422 Unprocessable Entity)

Returns validation error details when the request parameters are invalid.

{
"detail": [
{
"loc": [
"path",
"tool_id"
],
"msg": "invalid tool identifier format",
"type": "value_error"
}
]
}

Error Response Fields

FieldTypeDescription
detailarrayArray of validation error objects.
locarrayLocation of the error in the request (e.g., path, query).
msgstringHuman-readable error message.
typestringError type identifier.

Error Codes

Status CodeDescriptionResponse Type
200Successful ResponseSuccess
400Bad Request - Invalid requestBad Request
404Not Found - Tool does not existNot Found
422Validation Error - Invalid request parametersUnprocessable Entity